#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QFileDialog>
#include <drawview.h>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_action_del_triggered();

    void on_action_draw_toggled(bool arg1);

    void on_action_line_toggled(bool arg1);

    void on_action_curve_toggled(bool arg1);

    void on_action_rect_toggled(bool arg1);

    void on_action_round_rect_toggled(bool arg1);

    void on_action_circle_toggled(bool arg1);

    void on_action_ellipse_toggled(bool arg1);

    void on_action_choose_toggled(bool arg1);

    void on_action1_triggered();

    void on_action2_triggered();

    void on_action3_triggered();

    void on_action4_triggered();

    void on_action5_triggered();

    void on_action6_triggered();

    void on_action7_triggered();

    void on_action8_triggered();

    void on_action9_triggered();

    void on_action10_triggered();

    void on_action_addColor_toggled(bool arg1);

    void on_action_color_triggered();

    void on_action_rotate_triggered();

    void on_action_minus_triggered();

    void on_action_plus_triggered();

    void on_action_img_triggered();

    void on_action_o_triggered();

    void on_action_n_triggered();

    void on_action_x_triggered();

    void on_action_s_triggered();

    void on_action_undo_triggered();

    void on_action_redo_triggered();

    void on_penColorBtn_clicked();
    void on_brushColorBtn_clicked();

    void on_brushCheckBox_clicked();

private:
    Ui::MainWindow *ui;
    QColor color = Qt::black;
    QColor b_color = Qt::white;

    int checkedId = 0;
    int weight = 1;
    QList<QAction *> actionList;
    DrawView *drawView;
    QStatusBar *statusBar;
    void toggleTool(QAction *);
    void onToggleFalse();
};

#endif // MAINWINDOW_H
